package com.dodalizer.parser.source;

import java.io.File;

import com.dodalizer.parser.comment.Comment;

public abstract class Source {

    private String filepath;
    private String language;
    private String author;
    private Comment comments;

    public String getFilename() {
        return this.filepath.substring(this.filepath.lastIndexOf(File.separator));
    }

    public String getFilepath() {
        return this.filepath;
    }

    public void setFilepath(String filepath) {
        this.filepath = filepath;
    }

    public String getLanguage() {
        return this.language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getAuthor() {
        return this.author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Comment getComments() {
        return this.comments;
    }

    public void setComments(Comment comments) {
        this.comments = comments;
    }
}
